import request from "@/utils/request";
//报警类型
export function getListByType(params) {
  return request({
    method: "get",
    url: "/waste/sysDiction/getListByType",
    params
  });
}

//报警列表
export function warnBaseList(data) {
  return request({
    method: "post",
    url: "/waste/warnBase/getList",
    data
  });
}
//报警处理
export function warnBaseDeal(data) {
  return request({
    method: "post",
    url: "/waste/warnBase/dealWith",
    data
  });
}
//查看报警详情
export function warnBaseGetById(id) {
  return request({
    method: "get",
    url: `/waste/warnBase/getById/${id}`
  });
}
//超重预警列表
export function warnWeightList() {
  return request({
    method: "get",
    url: "/waste/warnWeight/getList"
  });
}
//保存或编辑超重预警
export function warnWeightSave(data) {
  return request({
    method: "post",
    url: "/waste/warnWeight/save",
    data
  });
}

//获取重量信息
export function getWarnTimeAndWeight(wasteBaseId) {
  return request({
    method: "get",
    url: `/waste/warnBase/getWarnTimeAndWeight/${wasteBaseId}`
  });
}

export function warnInfoByBoxRecordId(wasteBaseId) {
  return request({
    method: "get",
    url: `/waste/wasteBase/warnInfoByBoxRecordId/${wasteBaseId}`
  });
}
